package com.voute.Api;

import com.voute.Model.Bean.BaseBean;
import com.voute.Model.Bean.PersonInfoBean;
import com.voute.Model.Bean.SimplePushMessageBean;

import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.Path;
import rx.Observable;

/**
 * 个人中心接口
 * Created by liucxu on 2017/1/20.
 */

public interface PersonInfoService {
    @GET("v1/users/self")
    Observable<PersonInfoBean> getMyInfo();

    @GET("v1/users/{uid}")
    Observable<PersonInfoBean> getOtherUserInfo(@Path("uid") String fid);

    @GET("v1/users/self/push")
    Observable<SimplePushMessageBean> refreshPushMsg();

    @DELETE("v1/oauth/token")
    Observable<BaseBean> exitLoginStatus();
}
